<div class="content">
	<div class="div-top" ng-hide="form.show">
		<span style="font-size: 20px;float:left;">{{menu_name}}</span>
		<div style="float:right;">
			<button ng-repeat="but in buttons" ng-click="clickBtn(but.event)" class="btn btn-{{but.style}}"><i class="iconfont {{but.img}}"></i>&nbsp;{{but.name}}</button>
		</div>
	</div>
	<form class="div-find form-inline">
		<div class="form-group">
			<label class="form-label">教室名称：</label>
			<input ng-model="form.name" type="text" class="form-control"/>
		</div>
		<div class="form-group">
			<label class="form-label">教室类型：</label>
			<select class="form-control" ng-options="type.id as type.name for type in typeList" ng-model="form.type">
				<option value="">==请选择==</option>
			</select>
		</div>
		<button ng-click="select()" type="submit" class="btn btn-secondary"><i class="iconfont icon-search"></i>&nbsp;查询</button>
	</form>
	<div class="div-table">
		<table class="table table-hover  table-bordered">
			<thead>
			<tr>
				<th class="table-th-checkbox"><input type="checkbox" ng-click="checkAlls($event.target)" /></th>
				<th column="sort" class="sorting" ng-click="order($event.target)">序号</th>
				<th column="code" class="sorting" ng-click="order($event.target)">代码</th>
				<th column="name" class="sorting" ng-click="order($event.target)">名称</th>
				<th column="abbreviation" class="sorting" ng-click="order($event.target)">简称</th>
				<!--<th column="fk_unit" class="sorting" ng-click="order($event.target)">校区</th>-->
				<th column="fk_teaching_building" class="sorting" ng-click="order($event.target)">教学楼</th>
				<!--<th column="floor" class="sorting" ng-click="order($event.target)">楼层</th>-->
				<th column="type" class="sorting" ng-click="order($event.target)">教室类型</th>
				<th column="task_num" class="sorting" ng-click="order($event.target)">任务数</th>
				<th column="class_capacity" class="sorting" ng-click="order($event.target)">上课容量</th>
				<th column="exam_capacity" class="sorting" ng-click="order($event.target)">考试容量</th>
				<th column="max_capacity" class="sorting" ng-click="order($event.target)">最大容量</th>
				<!--<th column="ifclash" class="sorting" ng-click="order($event.target)">排课时检测冲突</th>-->
				<th column="use_status" class="sorting" ng-click="order($event.target)">使用状态</th>
				<!--<th column="ramarks" class="sorting" ng-click="order($event.target)">备注</th>-->
			</tr>
			</thead>

			<tbody ng-switch on="page.current_num">
			<tr ng-switch-when="0">
				<td colspan="100">查询无记录</td>
			</tr>
			<tr ng-repeat="row in rows " ng-click="optData($event.currentTarget)">
				<td><input type="checkbox" name="dataPk" value="{{row.id}}" /></td>
				<td>{{row.sort}}</td>
				<td>{{row.code}}</td>
				<td>{{row.name}}</td>
				<td>{{row.abbreviation}}</td>
				<!--<td>{{row.unit_name}}</td>-->
				<td>{{row.building_name}}</td>
				<!--<td>{{row.floor}}</td>-->
				<td>{{row.type_name}}</td>
				<td>{{row.task_num}}</td>
				<td>{{row.class_capacity}}</td>
				<td>{{row.exam_capacity}}</td>
				<td>{{row.max_capacity}}</td>
				<!--<td ng-switch on="row.ifclash">
					<span ng-switch-when="0">否</span>
					<span ng-switch-when="1">是</span>
				</td>-->
				<td ng-switch on="row.use_status">
					<span ng-switch-when="1">启用</span>
					<span ng-switch-when="2">禁用</span>
				</td>
				<!--<td>{{row.ramarks}}</td>-->
			</tr>
			</tbody>
		</table>
	</div>
	<div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
</div>